package com.example.demo.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.demo.entity.OrderBase;
import com.example.demo.mapper.OrderBaseMapper;
import org.springframework.stereotype.Service;

@Service
public class OrderBaseService {
	private OrderBaseMapper orderBaseMapper;

	public OrderBaseService(OrderBaseMapper orderBaseMapper) {
		this.orderBaseMapper = orderBaseMapper;
	}

	public boolean update(OrderBase orderBase){
		QueryWrapper queryWrapper = new QueryWrapper();
		queryWrapper.eq("order_id",orderBase.getOrderId());
		return orderBaseMapper.update(orderBase,queryWrapper)>0;
	}
}
